import { S } from '../../s';
import { IPSControl } from '../ipscontrol';
import { IPSDBListPortletPart } from './ipsdblist-portlet-part';
import { PSDBSysPortletPartImpl } from './psdbsys-portlet-part-impl';

export class PSDBListPortletPartImpl
  extends PSDBSysPortletPartImpl
  implements IPSDBListPortletPart
{
  protected contentpscontrol: IPSControl;
  getContentPSControl(): IPSControl | null {
    if (this.contentpscontrol != null) return this.contentpscontrol;
    const value = this.M.getContentPSControl;
    if (value == null) {
      return;
    }
    this.contentpscontrol = this.findPSControl(value);
    return this.contentpscontrol;
  }
  get cls(): string {
    return 'PSDBListPortletPartImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._22d) return true;
    return super.instanceof(cls);
  }
}
